/* $Id: trim.js,v 1.1.1.1 2014/08/23 06:57:06 ymlam Exp $ Copyright (C) 2014 Link2Tek LLC */
/**
 * Thie method returns a string without leading or trailing spaces
 */
String.prototype.trim = function()
{
   var x = this;
   x = x.replace(/^\s*(.*)/, "$1");
   x = x.replace(/(.*?)\s*$/, "$1");
   return x;
}
